home *** CD-ROM | disk | FTP | other *** search
- /* $VER: ZoomNonProp.pvrx 3.0 (10.Aug.93) */
- /* Zooms into exact area lassoed.
-
- Suggested "ProVector.pvrx" entry:
-
- 'Define "ZoomNonProp " ZoomNonProp'
-
- Copyright © 1993 by Stylus, Inc.
- */
-
- options results
-
- /* Obtain exclusive access to ProVector(tm); quit if not possible */
- 'Lock Wait'
- if rc ~= 0 then exit
-
- Cmd = ""
- /* Get the argument list to see whether this is a menu or an OK (callback) */
- arg arglist
- Cmd = word(arglist,1)
-
- if Cmd = "" then do
- /* This was called directly from the menu */
- 'Prompt "Click & drag to mark area"'
- /* Get a rubber-banded area and call back */
- 'GetUserData 2 2 2 "ZoomNonProp OK" ""'
- end
- else if Cmd = "OK" then do
- /* This was called from GetUserData */
- 'EndPrompt'
- 'GetInputPoints Pts'
- View.X1 = Pts.0.X
- View.Y1 = Pts.0.Y
- View.X2 = Pts.1.X
- View.Y2 = Pts.1.Y
- 'SetView View'
- 'Repair'
- end
-
-
- CleanUp:
- 'UnLock' /* Always be sure to unlock ProVector */
- EXIT
-
-
- Error:
- arg String
- 'GetBool String "Cancel" "Cancel"'
- 'UnLock'
- exit
-
-